package net.xinqushi.design.templateMethod.pool;

public interface ConnectionPool<T> {
	
	T getConnection() throws Exception;
	
	void returnConnection(T obj) throws Exception;
			
	void addConnection() throws Exception;
	
	int getNumIdle();
	
	int getNumActive();
	
	void clear() throws Exception;
	
	void close() throws Exception;
	
	boolean isClosed();
}
